package com.sisgesbyte.data.entity.seguridad;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQuery;

@Entity
@NamedNativeQuery(name="seguridad.listaRestricciones",query="SELECT id, empresa_id, restriccion, active from seguridad.restricciones r "
					+ "where r.empresa_id = :codEmpresa order by id asc",
					resultClass=RestriccionesEntity.class)

public class RestriccionesEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	private int id;
	private int empresa_id;
	private String  restriccion;
	private boolean active;
	
	public RestriccionesEntity(){
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getEmpresa_id() {
		return empresa_id;
	}

	public void setEmpresa_id(int empresa_id) {
		this.empresa_id = empresa_id;
	}

	public String getRestriccion() {
		return restriccion;
	}

	public void setRestriccion(String restriccion) {
		this.restriccion = restriccion;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

}
